//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.ares.app.demo.common.api.verify.impl;

import java.util.Map;
import org.ares.app.demo.common.api.verify.ApiVerify;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

@Component("multiIpVerify")
public class b implements ApiVerify {
    @Value("${client.ip}")
    String client_ip;
    final int a = 4;

    public b() {
    }

    public boolean verify(Map<String, ?> param) {
        boolean var2 = false;
        if (StringUtils.isEmpty(this.client_ip)) {
            return var2;
        } else {
            String var3 = param.get("client_request_ip") + "";
            String[] var4 = this.client_ip.split(",");
            int var5 = Math.min(100, var4.length);

            for(int var6 = 0; var6 < var5; ++var6) {//++i与i++在for循环中的结果是一样
                if (var3.equals(var4[var6])) {
                    var2 = true;
                    break;
                }
            }

            return var2;
        }
    }
}
